<script>

    jxt.file.newJson = function (dataJson, attrs) {
        if (!dataJson) dataJson = jxt.file.dataJson;
        var _self = jxt.tag.newJson(dataJson);
        var text;
        var url;
        if (attrs) {
            text = attrs.text;
            url = attrs.url;
            if (!text)text = url;
        }
        _self.text = text;
        _self.url = url;

        return _self;
    };
    /*jxt.file.editbegin = function (eleid) {
        var node = jxt.getnode(eleid);
        jxt.msg.radio(eleid, "help_file", {"callbackfunction": "jxt.file.editend", "data": node});
    };*/
    jxt.file.help_callback= jxt.file.editend = function (subscribe_id, eventkey, attrs, event_source_id) {
        var eleid = subscribe_id;
        var node = jxt.getnode(eleid);
        node.text = attrs.text;
        node.url = attrs.url;
        if(!(node.text))node.text=  node.url;
        jxt.msg.radio(eleid, "nodechange");
        jxt.render(jxt.nowlevoneid, true);
    };
  /*  jxt.file.help_callback=function (subscribe_id, eventkey, attrs, event_source_id) {
        jxt.file.editend(subscribe_id, eventkey, attrs, event_source_id);
    };*/
</script>